<script setup lang="ts">
import Hello from "./HelloWorld.vue";
const props = defineProps(['name'])
    
// {
//     name: { type: String, required: true },
// })

const emit=defineEmits(['changeName','otherEvent'])

const btnClick=(n:string)=>{
 //....

   emit('changeName',n)
}

const age = defineModel('age')

const myObj={name:'Jane',age:20}

const n = defineModel('name')
</script>
<template>


<Hello :msg="n"/>
<slot n="John" :age="11" name="header"></slot>

<slot uname="John" :num="11" name="footer"></slot>
</template>